@layout("/layout/_container.html",{js:["/assets/modular/business/training/training.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">培训记录管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <input id="statusFlag" name="statusFlag" class="layui-input" type="hidden" value="CREATED"/>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="account" class="layui-input" type="text" placeholder="账号"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="trainingTable" lay-filter="trainingTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="audit">审批</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>

<script type="text/html" id="statusTpl">
    {{#  if(d.statusFlag === 'CREATED'){ }}
    <span style="color: #9a6e3a;">已提交</span>
    {{#  } else if(d.statusFlag === 'ACCEPT') { }}
    <span style="color: #00B83F;">审核通过</span>
    {{#  } else { }}
    <span style="color: #ff0000;">未通过</span>
    {{#  } }}
</script>
@}